namespace CSharpPro._0929;

 class Demo
{ 
    static void Main1()
    {
        for (int num = 100; num < 1000; num++)
        {
            int hundreds = num / 100;
            int tens = (num/10) % 100;
            int units = num%10;
            int a1 = hundreds * hundreds*hundreds;
            int a2 = tens * tens * tens;
            int a3 = units * units * units;
            if (a1+a2+a3 == num)
            {
                Console.WriteLine(num);
            }
        }
    }
    
}

